/// File:		SettingsComponent.h
/// Author:		Dennis Norton
/// Date:		03/28/12
/// Purpose:	This class holds the SettingsComponent for the application.

#include "SettingsComponent.h"

SettingsComponent::SettingsComponent()
{
	_bInitialized = false;

#if _DEBUG
	_bFullScreen = false;
#else
	_bFullScreen = true;
#endif
}
SettingsComponent::~SettingsComponent()
{

}

/// Function:	Initialize
/// Author:		Dennis Norton
/// Date:		03/28/12
/// Purpose:		This call initializes all the SettingsComponent;
bool SettingsComponent::Initialize()
{
	if(_bInitialized)
		return false;

	_WindowHeight = DEFAULT_WINDOW_HEIGHT;
	_WindowWidth = DEFAULT_WINDOW_WIDTH;
	_bVSYNC = DEFAULT_VSYNC;
	_bInitialized = true;
	return true;
}

/// Function:	ResetToDefault
/// Author:		Dennis Norton
/// Date:		03/28/12
/// Purpose:		This call resets all the values to the default values.
void SettingsComponent::ResetToDefault()
{
	_WindowHeight = DEFAULT_WINDOW_HEIGHT;
	_WindowWidth = DEFAULT_WINDOW_WIDTH;
	_bVSYNC = DEFAULT_VSYNC;
	_Gamma = DEFAULT_GAMMA;
#if _DEBUG
	_bFullScreen = false;
#else
	_bFullScreen = true;
#endif
}

void SettingsComponent::GetWindowDimensions(int& Width, int& Height)
{
	Width = _WindowWidth;
	Height = _WindowHeight;
}


